using System;

namespace SQLServices.RunnableItems
{
    /// <summary>
    /// Runnable items states. Before a script is executed the state is pending,
    /// if the script fails then the state changes to EXECUTED_WITH_ERROR otherwise
    /// EXECUTED_OK. In some ocasions the script could be ignored.
    /// </summary>
    [Flags]
    public enum RunnableState:int
    {
        PENDING = 0,
        EXECUTING = 1,
        EXECUTED_OK = 2, 
        EXECUTED_WITH_ERROR = 4,
        IGNORED = 8
    };

    public delegate void AddedEvent(IRunnableItemOld runnableItemOld);
}